﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Emgu.CV;
using Emgu.CV.Structure;
using Emgu.Util;
using Emgu.CV.UI;

namespace CCD
{
    public partial class ShowPicture : Form
    {
        public ShowPicture()
        {
            InitializeComponent();
        }

        public ShowPicture(IImage img)
        {
            InitializeComponent();
            this.Show();
            imageBox1.Image = img;
        }

        private void showPicture_Load(object sender, EventArgs e)
        {
            imageBox1.FunctionalMode = ImageBox.FunctionalModeOption.PanAndZoom;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
